//
//	CGXResult.m
//
//	Create by 曹 曹 on 11/8/2016
//	Copyright © 2016. All rights reserved.
//	Model file generated using JSONExport: https://github.com/Ahmed-Ali/JSONExport



#import "CGXResult.h"
#import "CGXList.h"

@interface CGXResult ()
@end
@implementation CGXResult

- (void)setValue:(id)value forKey:(NSString *)key {
    [super setValue:value forKey:key];
    if ([key isEqualToString:@"list"]) {
        NSMutableArray<CGXList *> *listArray = [NSMutableArray array];
        for (NSDictionary *dictionary in value) {
            CGXList *list = [CGXList modelWithDictionary:dictionary];
            [listArray addObject:list];
        }
        _list = listArray;
    }
}


@end
